import type { FormRules } from "element-plus";
import { reactive } from "vue";
import { $t } from "@/plugins/i18n";

export const roleFormRules = reactive<FormRules>({
    name: [
        { required: true, message: $t("placeholder.inputRoleName"), trigger: "blur" },
    ],
    code: [
        { required: true, message: $t("placeholder.inputRoleCode"), trigger: "blur" },
    ],
});
